package com.example.pojo;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
@Data
@EqualsAndHashCode(callSuper = false)
public class ConditionsQuery extends BaseQuery{
    private Map<String,String>conditions = new HashMap<>();

    // 添加单个键值对到Map
    public void addCondition(String key, String value) {
        conditions.put(key, value);
    }
}
